package ru.nagakhl.whirlpool.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * By default key of Column that field is mapped to is equal to field name
 * This annotation gives ability to customize this behavior 
 * 
 * @author nagakhl
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Key {
	
	/** Key name for column that field marked with this annotation is mapped to */
	String value();
}
